package com.tianji.promotion.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.promotion.domain.dto.CouponFormDTO;
import com.tianji.promotion.domain.dto.CouponIssueFormDTO;
import com.tianji.promotion.domain.po.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.promotion.domain.query.CouponQuery;
import com.tianji.promotion.domain.vo.CouponDetailVO;
import com.tianji.promotion.domain.vo.CouponPageVO;
import com.tianji.promotion.domain.vo.CouponVO;

import java.util.List;

/**
 * <p>
 * 优惠券的规则信息 服务类
 * </p>
 *
 * @author 优惠卷模块
 * @since 2023-04-20
 */
public interface ICouponService extends IService<Coupon> {

    //增加优惠卷
    void AddCoupons(CouponFormDTO couponFormDTO);

    //优惠劵分页
    PageDTO<CouponPageVO> PageCoupons(CouponQuery query);

    //发放优惠卷
    void FaCoupons(CouponIssueFormDTO formDTO);

    //根据id进行查询优惠卷
    CouponDetailVO IdCoupons(Long id);

    //根据id修改优惠卷
    CouponDetailVO UpdateCoupons(Long id);

    //查询发放中的优惠卷
    List<CouponVO> SaveCoupons();

    //暂停发放优惠卷
    void PauseCoupons(Long id);
}
